﻿#include "FITKAbstractPSModel.h"

#include "parasolid_kernel.h"

namespace PS
{
    FITKAbstractPSModel::FITKAbstractPSModel(Interface::FITKAbsGeoCommand * command) :
        Interface::FITKAbsGeoShapeAgent(command)
    {
        
    }

    FITKAbstractPSModel::~FITKAbstractPSModel()
    {

    }

    bool FITKAbstractPSModel::writeToFile(const QString & file)
    {
        return false;
    }

    int FITKAbstractPSModel::getShapeCount(const Interface::FITKModelEnum::FITKModelSetType type)
    {
        return 0;
    }

    Interface::FITKGeoEnum::FITKGeoEngine FITKAbstractPSModel::getGeoEngine()
    {
        return Interface::FITKGeoEnum::FGEPS;
    }

    Interface::FITKModelEnum::AbsModelType FITKAbstractPSModel::getAbsModelType()
    {
        return Interface::FITKModelEnum::AbsModelType::AMTGeometry;
    }

    bool FITKAbstractPSModel::writeSTLFile(QString folderPath)
    {
        return false;
    }

    void FITKAbstractPSModel::getBoundaryBox(double * min, double * max)
    {

    }

    void FITKAbstractPSModel::updateShape(int shape)
    {
        _shape = shape;
    }

    void FITKAbstractPSModel::triangulate(const int shape, double factor)
    {

    }

    PSShapeAgent::PSShapeAgent(Interface::FITKAbsGeoCommand * c)
    {
        _paraSolidShapeAgent = new FITKAbstractPSModel(c);
    }
}

